package data;

import java.util.Comparator;

public class SommetComparator<T> implements Comparator<Arrete>{
public SommetComparator(){
	
}
public int compare(Arrete a,Arrete b){
	int da=a.sommet2.estimation;
	int db=b.sommet2.estimation;
	if (da<db){
		return -1;
	}else{
		if (da>db){
			return 1;
		}else{
			return 0;
		}
	}
	
}
}
